//
//  download.h
//  download
//
//  Created by lanou3g on 15/10/16.
//  Copyright © 2015年 lanou3g. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <AFNetworking.h>

@interface download : NSObject
//@param  paramDic   附加的post参数
//@param  requestURL   请求的地址
//@param  savedPath   保存在磁盘的位置
//@param  success   下载成功回调
//@param  failure   下载失败回调
//@param  progress   实时下载进度
-(void)downloadFileWithOption:(NSDictionary *)paramDic withURL:(NSString *)requestURL savePath:(NSString *)savedPath downloadSuccess:(void(^)(AFHTTPRequestOperation *operation,id responseObject))success downloadFailure:(void(^)(AFHTTPRequestOperation *operation,NSError *error))failure progress:(void(^)(float progress))progress;

//停止操作
-(void)pauseOperation;
//继续下载
-(void)resumeOperation;
//取消操作
-(void)cancelOperation;


@end
